package com.huzz.feign;

import com.huzz.component.FeignInterceptor;
import com.huzz.feign.fallback.FeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Name 名称
 * @Description 描述
 * @Author 童年的纸飞机
 * @Since 2023-08-2023/8/1 17:41
 */
@FeignClient(name = "server-02", configuration = FeignInterceptor.class, fallback = FeignServiceFallback.class)
public interface FeignService {
    /**
     * 获取服务2的消息
     * @return
     */
    @GetMapping(value = "/api/app2/getMessageInfo")
    String getMessageInfo();

}
